<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
<script type="text/javascript"
	src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.dataTables.min.js"></script>
<link rel="stylesheet" href="css/demo_table.css">
<link rel="stylesheet" href="css/psecharts.css">
</head>
<body>
	<div id="container">
		<div id="header">
			<ul>
				<li><a href="index.html">Line</a></li>
				<li><a href="candle.html">Candle</a></li>
				<li><a href="reports.html">Report</a></li>
			</ul>

			<ul style="position: absolute; right: 10px; top: -12px;">
				<li>Supported Browsers</li>
				<li><a href="http://www.google.com/chrome">Chrome</a></li>
				<li><a href="http://www.mozilla.com">Firefox 3.5+</a></li>
				<li><a
					href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home">IE8+</a>
				</li>
			</ul>
		</div>

		<div id="content">
			<table id="table_id">
				<thead>
          <tr>
            <th>ticker</th>
            <th>year</th>
            <th>ROC UsingEbit</th>
            <th>ROC Using Operating Income</th>
            <th>EY Using Ebit</th>
            <th>EY Using Operating Income</th>
            <th>current Assets (M)</th>
            <th>current Liabilities (M)</th>
            <th>operating Income (M)</th>
            <th>net Interest Expense (M)</th>
            <th>net Fixed Assets (M)</th>
            <th>cash And Equivalents (M)</th>
            <th>long Term Debt (M)</th>
            <th>market Capitalization (M)</th>
            <th>ebit (M)</th>
            <th>net Working Capital (M)</th>
            <th>net Interest Bearing Debt (M)</th>
            <th>enterprise Value (M)</th>
          </tr>
				</thead>
				<tbody>
           <c:forEach var="info" items="${infoList}">
					<tr>
            <td><a href="data?financialsTicker=<c:out value="${info.ticker}"/>"><c:out value="${info.ticker}"/></a></td>
            <td><c:out value="${info.year}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="4" groupingUsed="false" value="${info.ROCUsingEbit}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="4" groupingUsed="false" value="${info.ROCUsingOperatingIncome}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="4" groupingUsed="false" value="${info.EYUsingEbit}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="4" groupingUsed="false" value="${info.EYUsingOperatingIncome}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.currentAssets/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.currentLiabilities/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.operatingIncome/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.netInterestExpense/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.netFixedAssets/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.cashAndEquivalents/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.longTermDebt/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.marketCapitalization/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.ebit/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.netWorkingCapital/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.netInterestBearingDebt/1000000}"/></td>
            <td align="right"><fmt:formatNumber type="number"  maxFractionDigits="1" groupingUsed="false" value="${info.enterpriseValue/1000000}"/></td>
					</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>



		<div id="footer">
			<a href="http://code.google.com/p/psecharts/" style="float: left">http://code.google.com/p/psecharts/</a>
			<a href="http://groups.google.com/group/psecharts-discuss"
				style="float: right">http://groups.google.com/group/psecharts-discuss</a>
		</div>
	</div>

	<script>
	$(document).ready(function() {
		var oTable =  $('#table_id').dataTable( {
			  "bPaginate": false			  } );
		} );
	</script>
	<script type="text/javascript">
		/*
		 var _gaq = _gaq || [];
		 _gaq.push(['_setAccount', 'UA-16275283-2']);
		 _gaq.push(['_trackPageview']);

		 (function() {
		 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
		 })();
		 */
	</script>
</body>
</html>